import axios from '@/request/index'

// 登录
export const loginApi = (username, password) => {
  return axios.post('/admin/login', {
    username,
    password,
  })
}

// 获取登录用户信息
export const getInfoApi = () => {
  return axios.post('/admin/getinfo')
}

// 退出登录
export const logoutApi = () => {
  return axios.post('/admin/logout')
}
